<template>
  <div class="count">
    <h2>Count组件:{{ $store.state.count }}</h2>
  </div>
</template>

<script>
export default {
  name: "Count",
  mounted() {
    console.log(this);
    console.log(this.$store, "this.$store");
  },
};
</script>

<style>
.count {
  background: cyan;
}
</style>